package JavaSE.Class12.Demo1;
import java.util.Arrays;

public class Demo_1 {
    public static void main(String[] args) {
        Student s1=new Student("dhangsan",10);
        Student s2=new Student("bisi",30);
        Student s3=new Student("cangwu",20);
        Student s4=new Student("abc",3);
        Student[] students={s1,s2,s3,s4};
        mySort.mySortInt(students);
        System.out.println(Arrays.toString(students));

        ageComparator AC=new ageComparator();
        nameComparator NC=new nameComparator();
        int ret1=NC.compare(s1,s2);
        int ret2=AC.compare(s1,s2);
        System.out.println(ret1);
        System.out.println(ret2);

    }

    public static void main1() {
        Student s1=new Student("zhangsan",10);
        Student s2=new Student("lisi",30);
        Student s3=new Student("wangwu",20);
        Student[] students={s1,s2,s3};
    }
}
